package com.cysion.study.ui

import android.view.View
import com.cysion.other.color
import com.cysion.study.R
import com.cysion.study.ktbox.base.BaseActivity
import com.cysion.study.ktbox.utils.darkTextTheme
import com.cysion.study.uibox.bar.TopBar
import kotlinx.android.synthetic.main.activity_pwithdraw_success.*

class PWithdrawSuccessActivity :BaseActivity(), View.OnClickListener {
    override fun getLayoutId(): Int {
        return R.layout.activity_pwithdraw_success
    }

    override fun initView() {
        darkTextTheme(color(R.color.white))
        topbar.apply {
            setTitleBackColor(color(R.color.white))
            setTitle("提现成功")
            setOnTopBarClickListener { obj, pos ->
                if (pos == TopBar.Pos.LEFT) {
                    finish()
                }
            }
        }
        tv_submit.setOnClickListener(this)
    }

    override fun closeMvp() {
    }

    override fun onClick(v: View?) {
        when (v?.id) {
            R.id.tv_submit->{
                finish()
            }
        }
    }

}
